import {axios, get, post} from './http.js'
import QS from 'qs';
export default {

    uploadArticle(param) {
        return post('/Editor/uploadArticle', param)
    },
    // uploadArticle(param) {
    //     return post('/Editor/uploadArticle', QS.stringify( param))
    // },
    getArticle(param) {
        return get('/Editor/getArticle', param);
    },
    getArticleById(param) {
        return post('/Editor/getArticleById',QS.stringify(param));
    },
    addTag(param) {
        return get('/Editor/addTag', param);
    },
    findaAllTags() {
        return get('/Editor/findaAllTags');
    },
    findTagByName(param) {
        return get('/Editor/findTagByName',param);
    },
    updateArticleTag(param) {
        return post('/Editor/updateArticleTag',param);
    },
    getArticleTotalNums() {
        return get('/Editor/getArticleTotalNums');
    },

    publishPlay(param){
        return get('/Play/publishPlay',param);
    },
    getPlay(){
        return get('/Play/getPlay');
    }

}





